package com.yunduo.service.impl;

import com.yunduo.entity.Shop;
import com.yunduo.mapper.ShopMapper;
import com.yunduo.service.ShopService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author ChengXin
 * @since 2023-07-12
 */
@Service
public class ShopServiceImpl extends ServiceImpl<ShopMapper, Shop> implements ShopService {
    @Resource
    private ShopMapper shopMapper;

    //根据店铺id查询文件url
    public List<String> getShopCovers(String[] ids){
        return shopMapper.selectImageUrlById(ids);
    }

    @Override
    public List<Shop> getShopOrderByPop(int count) {
        return shopMapper.selectShopOrderByPop(count);
    }
}
